﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FeCMS.Entity.AccessControlModule
{
    /// <summary>
    ///     
    /// </summary>
    [Serializable()]
    public class PermissionDBEntity
    {

#if DEBUG
        public PermissionDBEntity()
        {
 
        }

        public PermissionDBEntity(int permissionID,int roleID)
        {
            this._permissionID = permissionID;
            this._roleID = roleID;
        }
#endif 

        #region ID索引

        private int _permissionID;
        /// <summary>
        ///     权限的主键索引
        /// </summary>
        public int GetPermissionID
        {
            get { return ++_permissionID; }
        }

        private int _roleID;
        /// <summary>
        ///     角色的主键索引
        /// </summary>
        public int GetRoleID
        {
            get { return ++_roleID; }
        }

        #endregion

        public Dictionary<string, Admin> Admin
        {
            get;
            set;
        }

        public Dictionary<int, Permission> Permission
        {
            get;
            set;
        }

        public Dictionary<int, Role> Role
        {
            get;
            set;
        }
    }
}
